#ifndef _REGULATIONBASE_H_
#define _REGULATIONBASE_H_

#include <iostream>

/***************************************************
 * mode name:RegulationBase
 * brief:调控抽象类，由具体的调控手段类来继承
 * @author yxt
 * @created 2024/09/04 16:42:25
 * @imfor ~/bigSystem/closedLoop_regulation/include/RegulationBase.h
 * @modify:
 * 		
***************************************************/

class RegulationBase
{

public:
    // 初始化函数，预留的接口
    virtual bool init(){
        std::cout << "default:RegulationBase::init()" << std::endl;
        return true;
    };
    virtual bool init(void* args = nullptr){
        std::cout << "default:RegulationBase::init(void* args = nullptr)" << std::endl;
        return true;
    };

    // 调控状态更新
    virtual void stateUpdate(void* input) = 0;
    // 开始调控任务
    virtual int task() = 0;
    
    virtual ~RegulationBase(){};
};




#endif
